export function isSubSetArray(arr1, arr2) {
  for (let i = 0; i < arr2.length; i++) {
    const subArray = arr2[i];
    if (isSameArray(arr1, subArray)) {
      return true;
    }
  }
  return false;
}

function isSameArray(arr1, arr2) {
  if (arr1.length !== arr2.length) {
    return false;
  }
  for (let i = 0; i < arr1.length; i++) {
    if (!isSameRow(arr1[i], arr2[i])) {
      return false;
    }
  }
  return true;
}

function isSameRow(row1, row2) {
  if (row1.length !== row2.length) {
    return false;
  }
  if (JSON.stringify(row1) !== JSON.stringify(row2)) {
    return false;
  }
  return true;
}